package com.ndp.fb.enums.message;

import lombok.Getter;

/**
 * Created by elvisxiong on 7/28/15.
 */
@Getter
public enum ChannelType {
    WEBSITE(0),
    SMS(1),
    EMAIL(2),
    IPHONE(3),
    ANDROID(4);
    private int type;
    ChannelType(int type){
        this.type =type;
    }

    public static ChannelType getChannelType(int type){
        for (ChannelType channelType : ChannelType.values()) {
            if (channelType.getType()==type){
                return channelType;
            }
        }
       return null;
    }
}
